package com;

public class Node {
    Node next;
    int date;

    public Node() {
    }

    public Node(int date) {
        this.date = date;
    }

    public Node(int date,Node next) {
        this.next = next;
        this.date = date;
    }

    public Node getNext() {
        return next;
    }

    public void setNext(Node next) {
        this.next = next;
    }

    public Object getDate() {
        return date;
    }

    public void setDate(int date) {
        this.date = date;
    }
}
